package nc.ui.ebpur.sumamonggroups.actions.yf;

import java.awt.event.ActionEvent;

import nc.ui.ebpur.pub.tool.yf.SendMessage;
import nc.ui.ecpubapp.uif2app.actions.DefaultApproveAction;
import nc.vo.ebpur.release.AggReplyVO;
import nc.vo.ebpur.suminnergroup.AggEvalSummaryVO;
import nc.vo.pub.BusinessException;

@SuppressWarnings("restriction")
public class SumAmongApprove extends DefaultApproveAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void doAction(ActionEvent e) throws Exception {
		super.doAction(e);
		Object obj = getModel().getSelectedData();
//		AggEvalSummaryVO
		AggEvalSummaryVO[] arriveVOs = null;
		if (obj instanceof Object[]) {
			arriveVOs = (AggEvalSummaryVO[]) obj;
		} else {
			arriveVOs = new AggEvalSummaryVO[] { (AggEvalSummaryVO) obj };
		}
		SendMessage.sendMsg(arriveVOs,
				SendMessage.MSG_TEMPCODE_EC40_R1,
				"EC40");
	}
}
